package com.sitech.portal.system.dao.ibatis;

import java.util.List;

import com.sitech.ibnms.core.BaseIbnmsDao;
import com.sitech.portal.system.dao.ISysRoleModuleDao;
import com.sitech.portal.system.domain.TblSYS_ROLE_MODULE;

public class SysRoleModuleDaoImpl extends BaseIbnmsDao implements ISysRoleModuleDao {

	public void insert(TblSYS_ROLE_MODULE tblSYS_ROLE_MODULE) {
		this.insert("insertFortblSYS_ROLE_MODULE",
					tblSYS_ROLE_MODULE);
	}

	public void update(TblSYS_ROLE_MODULE tblSYS_ROLE_MODULE) {
		this.update("update", tblSYS_ROLE_MODULE);
	}

	public void deleteByModIDS(String modID) {
		this.delete("deleteForTblSYS_ROLE_MODULEByModId", modID);
	}

	public void deleteByRoleId(String roleID) {
		this.delete("deleteForTblSYS_ROLE_MODULE", roleID);
	}

	public List findRoleModule() {
		return this.query("findRoleModule", null);
	}
        
    public List findModuleIdByRoleId(String roleId) {
        return this.query("findModuleIdByRoleId", roleId);
    }
}
